package au.com.iglootech.TaxTimeToolTip.util;

public class InvoiceUtil {
	private static Integer BASE = 100000000;
	public static String formatInvoiceNumber(Integer number)
	{
		Integer temp = BASE + number;
		return temp.toString().substring(1);
	}
	
	public static Integer parseInvoiceNumber(String invoiceNumber)
	{
		Integer temp = BASE ^ Integer.valueOf("1" + invoiceNumber);
		return temp;
	}
}
